var url = require('url');
var template = require('templateConfig');
var main = require('main');
var form = require('form');
var module = require('module');

//模板配置
var tplArr = [];
var storeTpl =require('raw!../template/store-detail.txt'); 
tplArr['store'] = template.compile(storeTpl.replace(/^\s*|\s*$/g, "")); 
 
function Index(){
    _this = this;
    this.main = function(){
        main.event(this,'tap','i-click'); 
        this.init();
    }
    this.getContent = function(){
    	var data1 = {"list":[
				{"name":"店员数","key":"10"},
				{"name":"累计粉丝","key":"10"},
				{"name":"累计销售额","key":"0"},
			]};
    	var data = {
    		tType: "content",
    		storeinfo: module.getModule('','storesInfoBrief'),
    		list: module.getModule(data1,'InfoTiled'),
    		storename: "福建中路店",
    		address: "上海市",
    		phone: "223223"
    	}
    	$(".content").html(tplArr['store'](data));
    }     

    this.init= function(){ 
       this.getContent();       
    }
    return this.main();
};

var index = new Index();